public class AWSRunInstancesOptions extends RunInstancesOptions
import static org.jclouds.aws.ec2.options.RunInstancesOptions.Builder.*
EC2Client connection = // get connection
Future instances = connection.runInstances(executableBy("123125").imageIds(1000, 1004));
Modifier and Type | Class and Description |
---|---|
static class |
AWSRunInstancesOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static AWSRunInstancesOptions |
NONE |
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor and Description |
---|
AWSRunInstancesOptions() |
Modifier and Type | Method and Description |
---|---|
AWSRunInstancesOptions |
asType(String type)
Specifies the instance type.
|
AWSRunInstancesOptions |
enableMonitoring()
Enables monitoring for the instance.
|
LaunchSpecification.Builder |
getLaunchSpecificationBuilder() |
AWSRunInstancesOptions |
inPlacementGroup(String placementGroup)
Specifies the name of an existing placement group you want to launch the instance into (for
cluster compute instances).
|
AWSRunInstancesOptions |
withBlockDeviceMappings(Set<? extends BlockDeviceMapping> mappings)
Specifies the Block Device Mapping for the instance
|
AWSRunInstancesOptions |
withKernelId(String kernelId)
The ID of the kernel with which to launch the instance.
|
AWSRunInstancesOptions |
withKeyName(String keyName)
The name of the key pair.
|
AWSRunInstancesOptions |
withRamdisk(String ramDiskId)
The ID of the RAM disk with which to launch the instance.
|
AWSRunInstancesOptions |
withSecurityGroup(String securityGroup)
Attaches a single security group.
|
AWSRunInstancesOptions |
withSecurityGroupId(String securityGroup) |
AWSRunInstancesOptions |
withSecurityGroupIds(Iterable<String> securityGroupIds) |
AWSRunInstancesOptions |
withSecurityGroupIds(String... securityGroupIds) |
AWSRunInstancesOptions |
withSecurityGroups(Iterable<String> securityGroups)
Attach multiple security groups
|
AWSRunInstancesOptions |
withSecurityGroups(String... securityGroups)
Attach multiple security groups
|
AWSRunInstancesOptions |
withSubnetId(String subnetId)
Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private
Cloud.
|
AWSRunInstancesOptions |
withUserData(byte[] unencodedData)
Unencoded data
|
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader
public static final AWSRunInstancesOptions NONE
public AWSRunInstancesOptions inPlacementGroup(String placementGroup)
placementGroup
- name of an existing placement grouppublic AWSRunInstancesOptions enableMonitoring()
public AWSRunInstancesOptions withSubnetId(String subnetId)
public AWSRunInstancesOptions withSecurityGroupId(String securityGroup)
public AWSRunInstancesOptions withSecurityGroupIds(Iterable<String> securityGroupIds)
public AWSRunInstancesOptions withSecurityGroupIds(String... securityGroupIds)
public AWSRunInstancesOptions withBlockDeviceMappings(Set<? extends BlockDeviceMapping> mappings)
RunInstancesOptions
withBlockDeviceMappings
in class RunInstancesOptions
public AWSRunInstancesOptions withKernelId(String kernelId)
RunInstancesOptions
withKernelId
in class RunInstancesOptions
public AWSRunInstancesOptions withKeyName(String keyName)
RunInstancesOptions
withKeyName
in class RunInstancesOptions
public AWSRunInstancesOptions withRamdisk(String ramDiskId)
RunInstancesOptions
withRamdisk
in class RunInstancesOptions
public AWSRunInstancesOptions withSecurityGroup(String securityGroup)
RunInstancesOptions
withSecurityGroup
in class RunInstancesOptions
securityGroup
- name of an existing security grouppublic AWSRunInstancesOptions withSecurityGroups(Iterable<String> securityGroups)
RunInstancesOptions
withSecurityGroups
in class RunInstancesOptions
public AWSRunInstancesOptions withSecurityGroups(String... securityGroups)
RunInstancesOptions
withSecurityGroups
in class RunInstancesOptions
public AWSRunInstancesOptions withUserData(byte[] unencodedData)
RunInstancesOptions
withUserData
in class RunInstancesOptions
public AWSRunInstancesOptions asType(String type)
RunInstancesOptions
asType
in class RunInstancesOptions
public LaunchSpecification.Builder getLaunchSpecificationBuilder()
Copyright © 2009-2012 jclouds. All Rights Reserved.