amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.RunInstances

Contents

Description

Launches the specified number of instances using an AMI for which you have permissions.

You can specify a number of options, or leave the default options. The following rules apply:

  • [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet from your default VPC for you. If you don't have a default VPC, you must specify a subnet ID in the request.
  • [EC2-Classic] If don't specify an Availability Zone, we choose one for you.
  • Some instance types must be launched into a VPC. If you do not have a default VPC, or if you do not specify a subnet ID, the request fails. For more information, see Instance Types Available Only in a VPC .
  • [EC2-VPC] All instances have a network interface with a primary private IPv4 address. If you don't specify this address, we choose one from the IPv4 range of your subnet.
  • Not all instance types support IPv6 addresses. For more information, see Instance Types .
  • If you don't specify a security group ID, we use the default security group. For more information, see Security Groups .
  • If any of the AMIs have a product code attached for which the user has not subscribed, the request fails.

You can create a launch template , which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances , you can specify the launch template instead of specifying the launch parameters.

To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances . You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging Your Amazon EC2 Resources .

Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide .

For troubleshooting, see What To Do If An Instance Immediately Terminates , and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

runInstances Source #

Creates a value of RunInstances with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • risAdditionalInfo - Reserved.
  • risSecurityGroupIds - One or more security group IDs. You can create a security group using CreateSecurityGroup . Default: Amazon EC2 uses the default security group.
  • risSecurityGroups - [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. Default: Amazon EC2 uses the default security group.
  • risClientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency . Constraints: Maximum 64 ASCII characters
  • risInstanceMarketOptions - The market (purchasing) option for the instances.
  • risDisableAPITermination - If you set this parameter to true , you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute to false after launch, use ModifyInstanceAttribute . Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate , you can terminate the instance by running the shutdown command from the instance. Default: false
  • risKeyName - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair . Important: If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
  • risNetworkInterfaces - One or more network interfaces.
  • risRAMDiskId - The ID of the RAM disk. Important: We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide .
  • risCPUOptions - The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide .
  • risSubnetId - [EC2-VPC] The ID of the subnet to launch the instance into.
  • risKernelId - The ID of the kernel. Important: We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide .
  • risInstanceType - The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide . Default: m1.small
  • risEBSOptimized - Indicates whether the instance is optimized for Amazon EBS IO. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS IO performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance. Default: false
  • risUserData - The user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text.
  • risMonitoring - The monitoring for the instance.
  • risTagSpecifications - The tags to apply to the resources during launch. You can tag instances and volumes. The specified tags are applied to all instances or volumes that are created during launch.
  • risIPv6AddressCount - [EC2-VPC] A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
  • risIAMInstanceProfile - The IAM instance profile.
  • risElasticGpuSpecification - An elastic GPU to associate with the instance.
  • risImageId - The ID of the AMI, which you can get by calling DescribeImages . An AMI is required to launch an instance and must be specified here or in a launch template.
  • risPrivateIPAddress - [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet. Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
  • risInstanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). Default: stop
  • risLaunchTemplate - The launch template to use to launch the instances. Any parameters that you specify in RunInstances override the same parameters in the launch template. You can specify either the name or ID of a launch template, but not both.
  • risCreditSpecification - The credit option for CPU usage of the instance. Valid values are standard and unlimited . To change this attribute after launch, use ModifyInstanceCreditSpecification . For more information, see T2 Instances in the Amazon Elastic Compute Cloud User Guide . Default: standard
  • risBlockDeviceMappings - One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
  • risDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • risPlacement - The placement for the instance.
  • risIPv6Addresses - [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
  • risMaxCount - The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount . Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.
  • risMinCount - The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances. Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

data RunInstances Source #

Contains the parameters for RunInstances.

See: runInstances smart constructor.

Instances
Eq RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Data RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RunInstances -> c RunInstances #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RunInstances #

toConstr :: RunInstances -> Constr #

dataTypeOf :: RunInstances -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RunInstances) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RunInstances) #

gmapT :: (forall b. Data b => b -> b) -> RunInstances -> RunInstances #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RunInstances -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RunInstances -> r #

gmapQ :: (forall d. Data d => d -> u) -> RunInstances -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RunInstances -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RunInstances -> m RunInstances #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RunInstances -> m RunInstances #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RunInstances -> m RunInstances #

Read RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Show RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Generic RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Associated Types

type Rep RunInstances :: Type -> Type #

Hashable RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

AWSRequest RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Associated Types

type Rs RunInstances :: Type #

ToHeaders RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

ToPath RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

ToQuery RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

NFData RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Methods

rnf :: RunInstances -> () #

type Rep RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

type Rep RunInstances = D1 (MetaData "RunInstances" "Network.AWS.EC2.RunInstances" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RunInstances'" PrefixI True) ((((S1 (MetaSel (Just "_risAdditionalInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_risSecurityGroupIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_risSecurityGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 (MetaSel (Just "_risClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_risInstanceMarketOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceMarketOptionsRequest))) :*: (S1 (MetaSel (Just "_risDisableAPITermination") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_risKeyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 (MetaSel (Just "_risNetworkInterfaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceNetworkInterfaceSpecification])) :*: S1 (MetaSel (Just "_risRAMDiskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_risCPUOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CPUOptionsRequest)) :*: S1 (MetaSel (Just "_risSubnetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_risKernelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_risInstanceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceType))) :*: (S1 (MetaSel (Just "_risEBSOptimized") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_risUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) :*: ((((S1 (MetaSel (Just "_risMonitoring") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RunInstancesMonitoringEnabled)) :*: S1 (MetaSel (Just "_risTagSpecifications") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TagSpecification]))) :*: (S1 (MetaSel (Just "_risIPv6AddressCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_risIAMInstanceProfile") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe IAMInstanceProfileSpecification)))) :*: ((S1 (MetaSel (Just "_risElasticGpuSpecification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ElasticGpuSpecification])) :*: S1 (MetaSel (Just "_risImageId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_risPrivateIPAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_risInstanceInitiatedShutdownBehavior") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ShutdownBehavior))))) :*: (((S1 (MetaSel (Just "_risLaunchTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LaunchTemplateSpecification)) :*: S1 (MetaSel (Just "_risCreditSpecification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CreditSpecificationRequest))) :*: (S1 (MetaSel (Just "_risBlockDeviceMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [BlockDeviceMapping])) :*: S1 (MetaSel (Just "_risDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 (MetaSel (Just "_risPlacement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Placement)) :*: S1 (MetaSel (Just "_risIPv6Addresses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceIPv6Address]))) :*: (S1 (MetaSel (Just "_risMaxCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_risMinCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))))
type Rs RunInstances Source # 
Instance details

Defined in Network.AWS.EC2.RunInstances

Request Lenses

risSecurityGroupIds :: Lens' RunInstances [Text] Source #

One or more security group IDs. You can create a security group using CreateSecurityGroup . Default: Amazon EC2 uses the default security group.

risSecurityGroups :: Lens' RunInstances [Text] Source #

EC2-Classic, default VPC
One or more security group names. For a nondefault VPC, you must use security group IDs instead. Default: Amazon EC2 uses the default security group.

risClientToken :: Lens' RunInstances (Maybe Text) Source #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency . Constraints: Maximum 64 ASCII characters

risInstanceMarketOptions :: Lens' RunInstances (Maybe InstanceMarketOptionsRequest) Source #

The market (purchasing) option for the instances.

risDisableAPITermination :: Lens' RunInstances (Maybe Bool) Source #

If you set this parameter to true , you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute to false after launch, use ModifyInstanceAttribute . Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate , you can terminate the instance by running the shutdown command from the instance. Default: false

risKeyName :: Lens' RunInstances (Maybe Text) Source #

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair . Important: If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

risRAMDiskId :: Lens' RunInstances (Maybe Text) Source #

The ID of the RAM disk. Important: We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide .

risCPUOptions :: Lens' RunInstances (Maybe CPUOptionsRequest) Source #

The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide .

risSubnetId :: Lens' RunInstances (Maybe Text) Source #

EC2-VPC
The ID of the subnet to launch the instance into.

risKernelId :: Lens' RunInstances (Maybe Text) Source #

The ID of the kernel. Important: We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide .

risInstanceType :: Lens' RunInstances (Maybe InstanceType) Source #

The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide . Default: m1.small

risEBSOptimized :: Lens' RunInstances (Maybe Bool) Source #

Indicates whether the instance is optimized for Amazon EBS IO. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS IO performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance. Default: false

risUserData :: Lens' RunInstances (Maybe Text) Source #

The user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text.

risTagSpecifications :: Lens' RunInstances [TagSpecification] Source #

The tags to apply to the resources during launch. You can tag instances and volumes. The specified tags are applied to all instances or volumes that are created during launch.

risIPv6AddressCount :: Lens' RunInstances (Maybe Int) Source #

EC2-VPC
A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

risElasticGpuSpecification :: Lens' RunInstances [ElasticGpuSpecification] Source #

An elastic GPU to associate with the instance.

risImageId :: Lens' RunInstances (Maybe Text) Source #

The ID of the AMI, which you can get by calling DescribeImages . An AMI is required to launch an instance and must be specified here or in a launch template.

risPrivateIPAddress :: Lens' RunInstances (Maybe Text) Source #

EC2-VPC
The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet. Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.

risInstanceInitiatedShutdownBehavior :: Lens' RunInstances (Maybe ShutdownBehavior) Source #

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). Default: stop

risLaunchTemplate :: Lens' RunInstances (Maybe LaunchTemplateSpecification) Source #

The launch template to use to launch the instances. Any parameters that you specify in RunInstances override the same parameters in the launch template. You can specify either the name or ID of a launch template, but not both.

risCreditSpecification :: Lens' RunInstances (Maybe CreditSpecificationRequest) Source #

The credit option for CPU usage of the instance. Valid values are standard and unlimited . To change this attribute after launch, use ModifyInstanceCreditSpecification . For more information, see T2 Instances in the Amazon Elastic Compute Cloud User Guide . Default: standard

risBlockDeviceMappings :: Lens' RunInstances [BlockDeviceMapping] Source #

One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

risDryRun :: Lens' RunInstances (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

risPlacement :: Lens' RunInstances (Maybe Placement) Source #

The placement for the instance.

risIPv6Addresses :: Lens' RunInstances [InstanceIPv6Address] Source #

EC2-VPC
Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.

risMaxCount :: Lens' RunInstances Int Source #

The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount . Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

risMinCount :: Lens' RunInstances Int Source #

The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances. Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Destructuring the Response

reservation Source #

Creates a value of Reservation with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rGroups - [EC2-Classic only] One or more security groups.
  • rInstances - One or more instances.
  • rRequesterId - The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
  • rReservationId - The ID of the reservation.
  • rOwnerId - The ID of the AWS account that owns the reservation.

data Reservation Source #

Describes a reservation.

See: reservation smart constructor.

Instances
Eq Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

Data Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Reservation -> c Reservation #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Reservation #

toConstr :: Reservation -> Constr #

dataTypeOf :: Reservation -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Reservation) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Reservation) #

gmapT :: (forall b. Data b => b -> b) -> Reservation -> Reservation #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Reservation -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Reservation -> r #

gmapQ :: (forall d. Data d => d -> u) -> Reservation -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Reservation -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Reservation -> m Reservation #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Reservation -> m Reservation #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Reservation -> m Reservation #

Read Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

Show Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

Generic Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

Associated Types

type Rep Reservation :: Type -> Type #

Hashable Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

FromXML Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

NFData Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

Methods

rnf :: Reservation -> () #

type Rep Reservation Source # 
Instance details

Defined in Network.AWS.EC2.Types.Product

type Rep Reservation = D1 (MetaData "Reservation" "Network.AWS.EC2.Types.Product" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "Reservation'" PrefixI True) ((S1 (MetaSel (Just "_rGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GroupIdentifier])) :*: S1 (MetaSel (Just "_rInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Instance]))) :*: (S1 (MetaSel (Just "_rRequesterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rReservationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

Response Lenses

rGroups :: Lens' Reservation [GroupIdentifier] Source #

EC2-Classic only
One or more security groups.

rInstances :: Lens' Reservation [Instance] Source #

One or more instances.

rRequesterId :: Lens' Reservation (Maybe Text) Source #

The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

rReservationId :: Lens' Reservation Text Source #

The ID of the reservation.

rOwnerId :: Lens' Reservation Text Source #

The ID of the AWS account that owns the reservation.