public class AWSRunInstancesOptions extends RunInstancesOptions
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 |
AWSRunInstancesOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static AWSRunInstancesOptions |
NONE |
formParameters, headers, 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 |
withIAMInstanceProfileArn(String arn)
Amazon resource name (ARN) of the IAM Instance Profile (IIP) to associate with the instances.
|
AWSRunInstancesOptions |
withIAMInstanceProfileName(String name)
The name of the IAM Instance Profile (IIP) to associate with the instances.
|
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 |
withPrivateIpAddress(String address)
The primary IP address for VPC instance.
|
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
|
withClientToken
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, 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 withIAMInstanceProfileArn(String arn)
public AWSRunInstancesOptions withIAMInstanceProfileName(String name)
public AWSRunInstancesOptions withPrivateIpAddress(String address)
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-2016 The Apache Software Foundation. All Rights Reserved.