public class RunInstancesOptions extends BaseEC2RequestOptions
import static org.jclouds.aws.ec2.options.RunInstancesOptions.Builder.*
EC2Api connection = // get connection
Future instances = connection.runInstances(executableBy("123125").imageIds(1000, 1004));
Modifier and Type | Class and Description |
---|---|
static class |
RunInstancesOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static RunInstancesOptions |
NONE |
formParameters, headers, pathSuffix, payload, queryParameters
Constructor and Description |
---|
RunInstancesOptions() |
Modifier and Type | Method and Description |
---|---|
RunInstancesOptions |
asType(String type)
Specifies the instance type.
|
RunInstancesOptions |
withBlockDeviceMappings(Set<? extends BlockDeviceMapping> mappings)
Specifies the Block Device Mapping for the instance
|
RunInstancesOptions |
withClientToken(String clientToken)
Specifies the optional ClientToken field, which triggers idempotent RunInstances calls.
|
RunInstancesOptions |
withKernelId(String kernelId)
The ID of the kernel with which to launch the instance.
|
RunInstancesOptions |
withKeyName(String keyName)
The name of the key pair.
|
RunInstancesOptions |
withRamdisk(String ramDiskId)
The ID of the RAM disk with which to launch the instance.
|
RunInstancesOptions |
withSecurityGroup(String securityGroup)
Attaches a single security group.
|
RunInstancesOptions |
withSecurityGroups(Iterable<String> securityGroups)
Attach multiple security groups
|
RunInstancesOptions |
withSecurityGroups(String... securityGroups)
Attach multiple security groups
|
RunInstancesOptions |
withUserData(byte[] unencodedData)
Unencoded data
|
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
public static final RunInstancesOptions NONE
public RunInstancesOptions withKeyName(String keyName)
public RunInstancesOptions withSecurityGroups(String... securityGroups)
public RunInstancesOptions withSecurityGroups(Iterable<String> securityGroups)
public RunInstancesOptions withSecurityGroup(String securityGroup)
securityGroup
- name of an existing security grouppublic RunInstancesOptions withUserData(byte[] unencodedData)
public RunInstancesOptions asType(String type)
public RunInstancesOptions withKernelId(String kernelId)
public RunInstancesOptions withRamdisk(String ramDiskId)
public RunInstancesOptions withBlockDeviceMappings(Set<? extends BlockDeviceMapping> mappings)
public RunInstancesOptions withClientToken(String clientToken)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.