Package org.jclouds.aws.ec2.options
Class AWSRunInstancesOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.ec2.options.internal.BaseEC2RequestOptions
org.jclouds.ec2.options.RunInstancesOptions
org.jclouds.aws.ec2.options.AWSRunInstancesOptions
- All Implemented Interfaces:
HttpRequestOptions
Contains options supported in the Form API for the RunInstances operation.
Usage
The recommended way to instantiate a RunInstancesOptions object is to statically import RunInstancesOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):
import static org.jclouds.aws.ec2.options.RunInstancesOptions.Builder.*
EC2Api connection = // get connection
Future instances = connection.runInstances(executableBy("123125").imageIds(1000, 1004));
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the instance type.Enables monitoring for the instance.inPlacementGroup
(String placementGroup) Specifies the name of an existing placement group you want to launch the instance into (for cluster compute instances).withBlockDeviceMappings
(Set<? extends BlockDeviceMapping> mappings) Specifies the Block Device Mapping for the instancewithDedicatedHostId
(String hostId) Specifies the ID of the dedicated host on which the instance should resist.Amazon resource name (ARN) of the IAM Instance Profile (IIP) to associate with the instances.The name of the IAM Instance Profile (IIP) to associate with the instances.withKernelId
(String kernelId) The ID of the kernel with which to launch the instance.withKeyName
(String keyName) The name of the key pair.withPrivateIpAddress
(String address) The primary IP address for VPC instance.withRamdisk
(String ramDiskId) The ID of the RAM disk with which to launch the instance.withSecurityGroup
(String securityGroup) Attaches a single security group.withSecurityGroupId
(String securityGroup) withSecurityGroupIds
(Iterable<String> securityGroupIds) withSecurityGroupIds
(String... securityGroupIds) withSecurityGroups
(Iterable<String> securityGroups) Attach multiple security groupswithSecurityGroups
(String... securityGroups) Attach multiple security groupswithSubnetId
(String subnetId) Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.withTenancy
(Tenancy tenancy) Specifies the tenancy of the instance within which to launch the instance(s).withUserData
(byte[] unencodedData) Unencoded dataMethods inherited from class org.jclouds.ec2.options.RunInstancesOptions
withClientToken
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
-
Field Details
-
NONE
-
-
Constructor Details
-
AWSRunInstancesOptions
public AWSRunInstancesOptions()
-
-
Method Details
-
inPlacementGroup
Specifies the name of an existing placement group you want to launch the instance into (for cluster compute instances).- Parameters:
placementGroup
- name of an existing placement group
-
withTenancy
Specifies the tenancy of the instance within which to launch the instance(s). -
withDedicatedHostId
Specifies the ID of the dedicated host on which the instance should resist. -
enableMonitoring
Enables monitoring for the instance. -
withSubnetId
Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. -
withSecurityGroupId
-
withSecurityGroupIds
-
withSecurityGroupIds
-
withIAMInstanceProfileArn
Amazon resource name (ARN) of the IAM Instance Profile (IIP) to associate with the instances.- See Also:
-
withIAMInstanceProfileName
The name of the IAM Instance Profile (IIP) to associate with the instances.- See Also:
-
withPrivateIpAddress
The primary IP address for VPC instance. You must specify a value from the IP address range of the subnet.- See Also:
-
withBlockDeviceMappings
Description copied from class:RunInstancesOptions
Specifies the Block Device Mapping for the instance- Overrides:
withBlockDeviceMappings
in classRunInstancesOptions
-
withKernelId
Description copied from class:RunInstancesOptions
The ID of the kernel with which to launch the instance.- Overrides:
withKernelId
in classRunInstancesOptions
-
withKeyName
Description copied from class:RunInstancesOptions
The name of the key pair.- Overrides:
withKeyName
in classRunInstancesOptions
-
withRamdisk
Description copied from class:RunInstancesOptions
The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.- Overrides:
withRamdisk
in classRunInstancesOptions
-
withSecurityGroup
Description copied from class:RunInstancesOptions
Attaches a single security group. Multiple calls to this method won't add more groups.- Overrides:
withSecurityGroup
in classRunInstancesOptions
- Parameters:
securityGroup
- name of an existing security group
-
withSecurityGroups
Description copied from class:RunInstancesOptions
Attach multiple security groups- Overrides:
withSecurityGroups
in classRunInstancesOptions
-
withSecurityGroups
Description copied from class:RunInstancesOptions
Attach multiple security groups- Overrides:
withSecurityGroups
in classRunInstancesOptions
-
withUserData
Description copied from class:RunInstancesOptions
Unencoded data- Overrides:
withUserData
in classRunInstancesOptions
-
asType
Description copied from class:RunInstancesOptions
Specifies the instance type. default small;- Overrides:
asType
in classRunInstancesOptions
-
getLaunchSpecificationBuilder
-