本文整理了Java中com.amazonaws.services.ec2.model.Placement.<init>()
方法的一些代码示例,展示了Placement.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Placement.<init>()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Placement
类名称:Placement
方法名:<init>
[英]Default constructor for Placement object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
[中]放置对象的默认构造函数。呼叫者应使用setter或fluent setter(带…)方法在创建对象后初始化该对象。
代码示例来源:origin: h2oai/h2o-2
run.withMinCount(launchCount).withMaxCount(launchCount);
run.withSecurityGroupIds(securityGroup);
Placement placement = new Placement();
placement.setGroupName(USER);
run.withPlacement(placement);
代码示例来源:origin: apache/usergrid
runInstancesRequest = runInstancesRequest.withPlacement( new Placement( stack.getDataCenter() ) );
client.setEndpoint( AmazonUtils.getEndpoint( stack.getDataCenter() ) );
代码示例来源:origin: apache/usergrid
runInstancesRequest = runInstancesRequest.withPlacement( new Placement( stack.getDataCenter() ) );
client.setEndpoint( AmazonUtils.getEndpoint( stack.getDataCenter() ) );
代码示例来源:origin: aws/aws-sdk-java
public Placement unmarshall(StaxUnmarshallerContext context) throws Exception {
Placement placement = new Placement();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
代码示例来源:origin: apache/incubator-druid
.withPlacement(new Placement(envConfig.getAvailabilityZone()))
.withKeyName(workerConfig.getKeyName())
.withIamInstanceProfile(
代码示例来源:origin: aws-amplify/aws-sdk-android
public Placement unmarshall(StaxUnmarshallerContext context) throws Exception {
Placement placement = new Placement();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
代码示例来源:origin: paulhoule/infovore
private RunInstancesRequest getBigRunInstancesRequest() {
String theAmi="ami-fccd2d94";
return new RunInstancesRequest(theAmi,1,1)
.withInstanceType("r3.xlarge")
.withKeyName("o2key")
.withSecurityGroups("launch-wizard-21")
.withMonitoring(true)
.withPlacement(new Placement("us-east-1e"));
}
代码示例来源:origin: UrbanCode/terraform
Placement placement = new Placement().withAvailabilityZone(zone);
request = request.withPlacement(placement);
代码示例来源:origin: com.proofpoint.galaxy/galaxy-coordinator
request.withPlacement(new Placement(availabilityZone));
代码示例来源:origin: airlift/airship
request.withPlacement(new Placement(availabilityZone));
代码示例来源:origin: com.proofpoint.galaxy/galaxy-coordinator
.withSecurityGroups(securityGroup)
.withInstanceType(instanceType)
.withPlacement(new Placement(availabilityZone))
.withUserData(getAgentUserData(instanceType, agentConfig, repositories))
.withBlockDeviceMappings(blockDeviceMappings)
代码示例来源:origin: com.xebialabs.cloud/overcast
protected String runInstance() {
RunInstancesRequest run = new RunInstancesRequest(amiId, 1, 1);
run.withInstanceInitiatedShutdownBehavior("terminate");
if (amiInstanceType != null) {
run.withInstanceType(amiInstanceType);
}
if (amiSecurityGroup != null) {
run.withSecurityGroups(amiSecurityGroup);
}
if (amiKeyName != null) {
run.withKeyName(amiKeyName);
}
if (amiAvailabilityZone != null) {
run.withPlacement(new Placement(amiAvailabilityZone));
}
RunInstancesResult result = ec2.runInstances(run);
return result.getReservation().getInstances().get(0).getInstanceId();
}
代码示例来源:origin: com.xebialabs.overthere/itest-support
protected String runInstance() {
RunInstancesRequest run = new RunInstancesRequest(amiId, 1, 1);
run.withInstanceInitiatedShutdownBehavior("terminate");
if (amiInstanceType != null) {
run.withInstanceType(amiInstanceType);
}
if (amiSecurityGroup != null) {
run.withSecurityGroups(amiSecurityGroup);
}
if (amiKeyName != null) {
run.withKeyName(amiKeyName);
}
if (amiAvailabilityZone != null) {
run.withPlacement(new Placement(amiAvailabilityZone));
}
RunInstancesResult result = ec2.runInstances(run);
return result.getReservation().getInstances().get(0).getInstanceId();
}
代码示例来源:origin: airlift/airship
.withSecurityGroups(securityGroup)
.withInstanceType(instanceType)
.withPlacement(new Placement(availabilityZone))
.withUserData(getAgentUserData(instanceType, agentConfig, provisioningScriptsArtifact, repositories))
.withBlockDeviceMappings(blockDeviceMappings)
代码示例来源:origin: org.duracloud/account-management-compute-amazon
request.setPlacement(new Placement(availabilityZone));
代码示例来源:origin: com.n3twork.druid/druid-indexing-service
.withPlacement(new Placement(setupData.getAvailabilityZone()))
.withKeyName(workerConfig.getKeyName())
.withUserData(
代码示例来源:origin: org.kuali.common/kuali-aws
Placement placement = new Placement(zone);
rir.setPlacement(placement);
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
public Placement unmarshall(StaxUnmarshallerContext context) throws Exception {
Placement placement = new Placement();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
代码示例来源:origin: io.druid/druid-indexing-service
.withPlacement(new Placement(envConfig.getAvailabilityZone()))
.withKeyName(workerConfig.getKeyName())
.withIamInstanceProfile(
代码示例来源:origin: org.apache.druid/druid-indexing-service
.withPlacement(new Placement(envConfig.getAvailabilityZone()))
.withKeyName(workerConfig.getKeyName())
.withIamInstanceProfile(
内容来源于网络,如有侵权,请联系作者删除!