o ckF[@sGdddeZdS)c@s<eZdZdZdddZddZddZd d Zdd d ZdS) DBSnapshota Represents a RDS DB Snapshot Properties reference available from the AWS documentation at http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DBSnapshot.html :ivar engine_version: Specifies the version of the database engine :ivar license_model: License model information for the restored DB instance :ivar allocated_storage: Specifies the allocated storage size in gigabytes (GB) :ivar availability_zone: Specifies the name of the Availability Zone the DB Instance was located in at the time of the DB Snapshot :ivar connection: boto.rds.RDSConnection associated with the current object :ivar engine: Specifies the name of the database engine :ivar id: Specifies the identifier for the DB Snapshot (DBSnapshotIdentifier) :ivar instance_create_time: Specifies the time (UTC) when the snapshot was taken :ivar instance_id: Specifies the the DBInstanceIdentifier of the DB Instance this DB Snapshot was created from (DBInstanceIdentifier) :ivar master_username: Provides the master username for the DB Instance :ivar port: Specifies the port that the database engine was listening on at the time of the snapshot :ivar snapshot_create_time: Provides the time (UTC) when the snapshot was taken :ivar status: Specifies the status of this DB Snapshot. Possible values are [ available, backing-up, creating, deleted, deleting, failed, modifying, rebooting, resetting-master-credentials ] :ivar iops: Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot. :ivar option_group_name: Provides the option group name for the DB snapshot. :ivar percent_progress: The percentage of the estimated data that has been transferred. :ivar snapshot_type: Provides the type of the DB snapshot. :ivar source_region: The region that the DB snapshot was created in or copied from. :ivar vpc_id: Provides the Vpc Id associated with the DB snapshot. NcCs|||_||_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_d|_ d|_ d|_d|_d|_d|_d|_dSN) connectionidengineengine_versionsnapshot_create_timeinstance_create_timeportstatusavailability_zonemaster_usernameallocated_storage instance_id license_modeliopsoption_group_namepercent_progress snapshot_type source_regionvpc_id)selfrrr5/usr/lib/python3/dist-packages/boto/rds/dbsnapshot.py__init__1s( zDBSnapshot.__init__cCs d|jS)Nz DBSnapshot:%s)r)rrrr__repr__Gs zDBSnapshot.__repr__cCsdSrr)rnameattrsrrrr startElementJszDBSnapshot.startElementcCsv|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkr6||_dS|dkrAt||_dS|dkrJ||_dS|d krS||_ dS|d kr\||_ dS|d krgt||_ dS|d krp||_ dS|d kry||_ dS|dkrt||_dS|dkr||_dS|dkrt||_dS|dkr||_dS|dkr||_dS|dkr||_dSt|||dS)NEngine EngineVersionInstanceCreateTimeSnapshotCreateTimeDBInstanceIdentifierDBSnapshotIdentifierPortStatusAvailabilityZoneMasterUsernameAllocatedStorage SnapshotTime LicenseModelIopsOptionGroupNamePercentProgress SnapshotType SourceRegionVpcId)rrrrrrintr r r r r timerrrrrrrsetattr)rrvaluerrrr endElementMsN               zDBSnapshot.endElementFcCs\|j|j}t|dkr"|D]}|j|jkr|j|jq|jS|r+td|j|jS)a Update the DB snapshot's status information by making a call to fetch the current snapshot attributes from the service. :type validate: bool :param validate: By default, if EC2 returns no data about the instance the update method returns quietly. If the validate param is True, however, it will raise a ValueError exception if no data is returned from EC2. z%s is not a valid Snapshot ID)rget_all_dbsnapshotsrlen__dict__update ValueErrorr )rvalidatersirrrr:ws  zDBSnapshot.update)NN)F) __name__ __module__ __qualname____doc__rrrr5r:rrrrrs *rN)objectrrrrrs