VM::EC2::Spot::InstanceRequest3pm
Object describing an amazon ec2 spot instance request
Usage
See "SPOT INSTANCES" in VM::EC2.
Overview
This object represents an Amazon EC2 spot instance request, which is returned by VM::EC2->request_spot_instances() and VM::EC2->describe_spot_instance_requests().
Methods
These object methods are supported:
spotInstanceRequestId -- ID of this spot instance requestspotPrice -- The maximum hourly price for any spotinstance launched under this request,in USD.type -- The spot instance request type, one of'one-time' or 'persistent'.state -- The state of this request, one of 'open','closed', 'fulfilled', 'cancelled' or 'failed'.fault -- Fault code for the request, if any, aninstance of VM::EC2::Error.status -- The status code and status message describing theSpot Instance request.validFrom -- Start date and time of the request.validUntil -- Date and time that the request expires.launchGroup -- Launch group of the instances run under this request.Instances in the same launch group are launchedand terminated together.launchedAvailabilityZone -- Availability zone of launched instance.availabilityZoneGroup -- Availability zone group of the instancesrun under this request. Instances in the sameavailability zone group will always be launchedinto the same availability zone.launchSpecification -- Additional information for launchinginstances, represented as a VM::EC2::Spot::LaunchSpecificatonobject.instanceId -- The instance ID, if an instance has been launched as aresult of this request.createTime -- The time and date when the spot instance request wascreated.productDescription -- The product description associated with this spotinstance request.
Convenience Methods
This class supports the standard tagging interface. In addition it provides the following convenience method:
$instance = $request->instance
If an instance was launched as a result of this request, the instance() method will return the corresponding VM::EC2::Instance object.
$state = $request->current_status
Refreshes the request information and returns its status as a VM::EC2::Spot::Status. This will string interpolate as the status code, such as "fulfilled". You may also call its object methods to get the time of the last update and full message.
$state = $request->current_state
Refreshes the request information and returns its state, such as "open".
$request->refresh
Refreshes the request information.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.