PHP Class Scalr\Service\Aws\Ec2\DataType\ReservedInstanceData

Since: 14.01.2013
Author: Vitaliy Demidov ([email protected])
Inheritance: extends Scalr\Service\Aws\Ec2\AbstractEc2DataType
Show file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$availabilityZone string The Availability Zone in which the Reserved Instance can be used.
$currencyCode string Valid values: As specified in ISO 4217 (e.g., USD, JPY)
$duration numeric The duration of the Reserved Instance, in seconds.
$end DateTime The time when the Reserved Instance expires.
$fixedPrice float The purchase price of the Reserved Instance
$instanceCount integer The number of Reserved Instances purchased.
$instanceTenancy string The tenancy of the reserved instance.
$instanceType string The instance type on which the Reserved Instance can be used.
$offeringType string The Reserved Instance offering type.
$productDescription string The Reserved Instance description Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows| Windows (Amazon VPC)
$reservedInstancesId string The Id of reserved instance
$start DateTime The date and time the Reserved Instance started.
$state string payment-pending | active | payment-failed | retired
$usagePrice float The usage price of the Reserved Instance, per hour.

Protected Properties

Property Type Description
$_properties array List of the public properties which is managed by magic getter and setters internally.

Public Methods

Method Description
createTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean CreateTags action
deleteTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean DeleteTags action
throwExceptionIfNotInitialized ( )

Method Details

createTags() public method

Adds or overwrites one or more tags for the specified EC2 resource or resources. Each resource can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.
public createTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array The key/value pair list of the Tags.
return boolean Returns true on success or throws an exception otherwise

deleteTags() public method

Deletes a specific set of tags from a specific set of resources. This call is designed to follow a DescribeTags call. You first determine what tags a resource has, and then you call DeleteTags with the resource ID and the specific tags you want to delete.
public deleteTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array The key/value pair list of the Tags.
return boolean Returns true on success or throws an exception otherwise

throwExceptionIfNotInitialized() public method

Property Details

$_properties protected property

List of the public properties which is managed by magic getter and setters internally.
protected array $_properties
return array

$availabilityZone public property

The Availability Zone in which the Reserved Instance can be used.
public string $availabilityZone
return string

$currencyCode public property

Valid values: As specified in ISO 4217 (e.g., USD, JPY)
public string $currencyCode
return string

$duration public property

The duration of the Reserved Instance, in seconds.
public numeric $duration
return numeric

$end public property

The time when the Reserved Instance expires.
public DateTime $end
return DateTime

$fixedPrice public property

The purchase price of the Reserved Instance
public float $fixedPrice
return float

$instanceCount public property

The number of Reserved Instances purchased.
public int $instanceCount
return integer

$instanceTenancy public property

The tenancy of the reserved instance.
public string $instanceTenancy
return string

$instanceType public property

The instance type on which the Reserved Instance can be used.
public string $instanceType
return string

$offeringType public property

The Reserved Instance offering type.
public string $offeringType
return string

$productDescription public property

The Reserved Instance description Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows| Windows (Amazon VPC)
public string $productDescription
return string

$reservedInstancesId public property

The Id of reserved instance
public string $reservedInstancesId
return string

$start public property

The date and time the Reserved Instance started.
public DateTime $start
return DateTime

$state public property

payment-pending | active | payment-failed | retired
public string $state
return string

$usagePrice public property

The usage price of the Reserved Instance, per hour.
public float $usagePrice
return float