PHP Class Scalr\Service\Aws\Rds\DataType\DBInstanceData

Since: 11.03.2013
Author: Vitaliy Demidov ([email protected])
Inheritance: extends Scalr\Service\Aws\Rds\AbstractRdsDataType
Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Свойство Type Description
$allocatedStorage integer Specifies the allocated storage size specified in gigabytes.
$autoMinorVersionUpgrade boolean Indicates that minor version patches are applied automatically
$availabilityZone string Specifies the name of the Availability Zone the DB Instance is located in.
$backupRetentionPeriod integer Specifies the number of days for which automatic DB Snapshots are retained
$characterSetName string If present, specifies the name of the character set that this instance is associated with
$dBClusterIdentifier string If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.
$dBInstanceClass string Contains the name of the compute and memory capacity class of the DB Instance
$dBInstanceIdentifier string This is the unique key that identifies a DB Instance
$dBInstanceStatus string Specifies the current state of this database
$dBName string MySQL Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance. Oracle Contains the Oracle System ID (SID) of the created DB Instance
$engine string Provides the name of the database engine to be used for this DB Instance.
$engineVersion string Indicates the database engine version.
$instanceCreateTime DateTime Provides the date and time the DB Instance was created.
$iops integer Specifies the Provisioned IOPS (I/O operations per second) value
$kmsKeyId string If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.
$latestRestorableTime DateTime Specifies the latest time to which a database can be restored with point-in-time restore
$licenseModel string License model information for this DB Instance
$masterUsername string Contains the master username for the DB Instance
$multiAZ boolean Specifies if the DB Instance is a Multi-AZ deployment.
$preferredBackupWindow string Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod
$preferredMaintenanceWindow string Specifies the weekly time range (in UTC) during which system maintenance can occur
$publiclyAccessible boolean publiclyAccessible
$readReplicaDBInstanceIdentifiers array Contains one or more identifiers of the Read Replicas associated with this DB Instance
$readReplicaSourceDBInstanceIdentifier string Contains the identifier of the source DB Instance if this DB Instance is a Read Replica
$secondaryAvailabilityZone string If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
$storageEncrypted boolean Specifies whether the DB instance is encrypted.
$storageType string Specifies the storage type to be associated with the DB instance.

Protected Properties

Свойство Type Description
$_properties array List of the public properties which is managed by magic getter and setters internally.

Méthodes publiques

Méthode Description
addTags ( array | Scalr\Service\Aws\Rds\DataType\TagsList $tagsList ) : array Adds metadata tags to an Amazon RDS resource.
createSnapshot ( string $dBSnapshotIdentifier ) : DBSnapshotData CreateDBSnapshot
delete ( boolean $skipFinalSnapshot = null, string $finalDBSnapshotIdentifier = null ) : DBInstanceData DeleteDBInstance action
describeTags ( ) : Scalr\Service\Aws\Rds\DataType\TagsList Lists all tags on an Amazon RDS resource.
getModifyRequest ( ) : Scalr\Service\Aws\Rds\DataType\ModifyDBInstanceRequestData Creates and returns new ModifyDbInstanceRequestData object for this DBInstance
getRestoreFromSnapshotRequest ( string $dbSnapshotIdentifier ) : Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData Gets a new RestoreDBInstanceFromDBSnapshotRequestData object for this DB Instance
modify ( Scalr\Service\Aws\Rds\DataType\ModifyDBInstanceRequestData $request ) : DBInstanceData ModifyDBInstance action
reboot ( boolean $forceFailover = null ) : DBInstanceData RebootDBInstance action
refresh ( ) : DBInstanceData DescribeDBInstances action
removeTags ( array | ListDataType $tagsKeys ) : boolean Removes metadata tags from an Amazon RDS resource.
restoreFromSnapshot ( Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData | string $request ) : DBInstanceData RestoreDBInstanceFromDBSnapshot action

Méthodes protégées

Méthode Description
throwExceptionIfNotInitialized ( )

Method Details

addTags() public méthode

Adds metadata tags to an Amazon RDS resource.
public addTags ( array | Scalr\Service\Aws\Rds\DataType\TagsList $tagsList ) : array
$tagsList array | Scalr\Service\Aws\Rds\DataType\TagsList List of tags to add
Résultat array Returns array of added tags

createSnapshot() public méthode

Creates a DBSnapshot. The source DBInstance must be in "available" state.
public createSnapshot ( string $dBSnapshotIdentifier ) : DBSnapshotData
$dBSnapshotIdentifier string The identifier for the DB Snapshot.
Résultat DBSnapshotData Returns DBSnapshotData on success or throws an exception.

delete() public méthode

The DeleteDBInstance API deletes a previously provisioned RDS instance. A successful response from the web service indicates the request was received correctly. If a final DBSnapshot is requested the status of the RDS instance will be "deleting" until the DBSnapshot is created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted
public delete ( boolean $skipFinalSnapshot = null, string $finalDBSnapshotIdentifier = null ) : DBInstanceData
$skipFinalSnapshot boolean optional Determines whether a final DB Snapshot is created before the DB Instance is deleted
$finalDBSnapshotIdentifier string optional The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false
Résultat DBInstanceData Returns created DBInstance

describeTags() public méthode

Lists all tags on an Amazon RDS resource.
public describeTags ( ) : Scalr\Service\Aws\Rds\DataType\TagsList
Résultat Scalr\Service\Aws\Rds\DataType\TagsList

getModifyRequest() public méthode

Creates and returns new ModifyDbInstanceRequestData object for this DBInstance
public getModifyRequest ( ) : Scalr\Service\Aws\Rds\DataType\ModifyDBInstanceRequestData
Résultat Scalr\Service\Aws\Rds\DataType\ModifyDBInstanceRequestData Returns new ModifyDbInstanceRequestData object for this DBInstance

getRestoreFromSnapshotRequest() public méthode

Gets a new RestoreDBInstanceFromDBSnapshotRequestData object for this DB Instance
public getRestoreFromSnapshotRequest ( string $dbSnapshotIdentifier ) : Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData
$dbSnapshotIdentifier string The DB Snapshot Identifier.
Résultat Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData

modify() public méthode

Modify settings for a DB Instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
public modify ( Scalr\Service\Aws\Rds\DataType\ModifyDBInstanceRequestData $request ) : DBInstanceData
$request Scalr\Service\Aws\Rds\DataType\ModifyDBInstanceRequestData Modify DB Instance request object
Résultat DBInstanceData Returns modified DBInstance

reboot() public méthode

Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS instance during which the RDS instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. A DBInstance event is created when the reboot is completed.
public reboot ( boolean $forceFailover = null ) : DBInstanceData
$forceFailover boolean optional When true, the reboot will be conducted through a MultiAZ failover. You cannot specify true if the instance is not configured for MultiAZ.
Résultat DBInstanceData Returns DBInstance

refresh() public méthode

Refreshes description of the object using request to Amazon. NOTE! It refreshes object itself only when EntityManager is enabled. If not, solution is to use $object = object->refresh() instead.
public refresh ( ) : DBInstanceData
Résultat DBInstanceData Return refreshed object

removeTags() public méthode

Removes metadata tags from an Amazon RDS resource.
public removeTags ( array | ListDataType $tagsKeys ) : boolean
$tagsKeys array | Scalr\Service\Aws\DataType\ListDataType Array of tag keys to remove
Résultat boolean

restoreFromSnapshot() public méthode

Creates a new DB Instance from a DB snapshot.The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.
public restoreFromSnapshot ( Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData | string $request ) : DBInstanceData
$request Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData | string The request object or DB Snapshot Identifier
Résultat DBInstanceData Returns DBInstanceData on success or throws an exception.

throwExceptionIfNotInitialized() protected méthode

Property Details

$_properties protected_oe property

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

$allocatedStorage public_oe property

Specifies the allocated storage size specified in gigabytes.
public int $allocatedStorage
Résultat integer

$autoMinorVersionUpgrade public_oe property

Indicates that minor version patches are applied automatically
public bool $autoMinorVersionUpgrade
Résultat boolean

$availabilityZone public_oe property

Specifies the name of the Availability Zone the DB Instance is located in.
public string $availabilityZone
Résultat string

$backupRetentionPeriod public_oe property

Specifies the number of days for which automatic DB Snapshots are retained
public int $backupRetentionPeriod
Résultat integer

$characterSetName public_oe property

If present, specifies the name of the character set that this instance is associated with
public string $characterSetName
Résultat string

$dBClusterIdentifier public_oe property

If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.
public string $dBClusterIdentifier
Résultat string

$dBInstanceClass public_oe property

Contains the name of the compute and memory capacity class of the DB Instance
public string $dBInstanceClass
Résultat string

$dBInstanceIdentifier public_oe property

This is the unique key that identifies a DB Instance
public string $dBInstanceIdentifier
Résultat string

$dBInstanceStatus public_oe property

Specifies the current state of this database
public string $dBInstanceStatus
Résultat string

$dBName public_oe property

MySQL Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance. Oracle Contains the Oracle System ID (SID) of the created DB Instance
public string $dBName
Résultat string

$engine public_oe property

Provides the name of the database engine to be used for this DB Instance.
public string $engine
Résultat string

$engineVersion public_oe property

Indicates the database engine version.
public string $engineVersion
Résultat string

$instanceCreateTime public_oe property

Provides the date and time the DB Instance was created.
public DateTime $instanceCreateTime
Résultat DateTime

$iops public_oe property

Specifies the Provisioned IOPS (I/O operations per second) value
public int $iops
Résultat integer

$kmsKeyId public_oe property

If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.
public string $kmsKeyId
Résultat string

$latestRestorableTime public_oe property

Specifies the latest time to which a database can be restored with point-in-time restore
public DateTime $latestRestorableTime
Résultat DateTime

$licenseModel public_oe property

License model information for this DB Instance
public string $licenseModel
Résultat string

$masterUsername public_oe property

Contains the master username for the DB Instance
public string $masterUsername
Résultat string

$multiAZ public_oe property

Specifies if the DB Instance is a Multi-AZ deployment.
public bool $multiAZ
Résultat boolean

$preferredBackupWindow public_oe property

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod
public string $preferredBackupWindow
Résultat string

$preferredMaintenanceWindow public_oe property

Specifies the weekly time range (in UTC) during which system maintenance can occur
public string $preferredMaintenanceWindow
Résultat string

$publiclyAccessible public_oe property

publiclyAccessible
public bool $publiclyAccessible
Résultat boolean

$readReplicaDBInstanceIdentifiers public_oe property

Contains one or more identifiers of the Read Replicas associated with this DB Instance
public array $readReplicaDBInstanceIdentifiers
Résultat array

$readReplicaSourceDBInstanceIdentifier public_oe property

Contains the identifier of the source DB Instance if this DB Instance is a Read Replica
public string $readReplicaSourceDBInstanceIdentifier
Résultat string

$secondaryAvailabilityZone public_oe property

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
public string $secondaryAvailabilityZone
Résultat string

$storageEncrypted public_oe property

Specifies whether the DB instance is encrypted.
public bool $storageEncrypted
Résultat boolean

$storageType public_oe property

Specifies the storage type to be associated with the DB instance.
public string $storageType
Résultat string