FRTc@svddlZddlmZddlmZddlmZddlmZddl m Z defdYZ dS( iN(tAWSQueryConnection(t RegionInfo(tJSONResponseError(t exceptions(tjsont RDSConnectioncBsyeZdZdZdZdZeZi5ej d6ej d6ej d6ej d6ej d6ejd 6ejd 6ejd 6ejd 6ejd 6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ejd6ej d6ej!d6ej"d6ej#d6ej$d6ej%d 6ej&d!6ej'd"6ej(d#6ej)d$6ej*d%6ej+d&6ej,d'6ej-d(6ej.d)6ej/d*6ej0d+6ej1d,6ej2d-6ej3d.6ej4d/6ej5d06ej6d16ej7d26ej8d36ej9d46ej:d56ej;d66ej<d76ej=d86Z>d9Z?d:Z@d;ZAd<ZBeCeCeCeCd=ZDeCd>ZEeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCd?ZFeCeCeCeCeCeCeCeCd@ZGeCdAZHeCdBZIeCdCZJeCdDZKeCeCeCeCeCdEZLeCdFZMeCeCdGZNdHZOdIZPdJZQdKZRdLZSdMZTeCeCeCeCeCeCeCdNZUeCeCeCeCdOZVeCeCeCeCeCdPZWeCeCeCeCdQZXeCeCeCdRZYeCeCeCeCdSZZeCeCeCeCeCeCdTZ[eCeCeCeCdUZ\eCeCdVZ]eCdWZ^eCeCeCeCdXZ_eCeCeCeCeCeCeCeCdYZ`eCeCeCdZZaeCeCeCeCeCeCd[ZbeCeCeCeCeCeCd\ZceCeCeCeCeCeCeCeCeCeCd] ZdeCeCeCeCeCeCeCeCd^ZeeCeCd_Zfd`ZgeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCeCdaZhdbZieCdcZjeCeCeCeCddZkeCeCeCdeZleCeCdfZmeCeCeCdgZneCdhZodiZpdjZqeCeCdkZreCeCeCeCeCeCeCeCeCeCeCeCeCdl ZseCeCeCeCeCeCeCeCeCeCeCeCeCeCeCdmZteCeCeCeCdnZudoZvRS(psV Amazon Relational Database Service Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique. Amazon RDS gives you access to the capabilities of a familiar MySQL or Oracle database server. This means the code, applications, and tools you already use today with your existing MySQL or Oracle databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use. This is the Amazon RDS API Reference . It contains a comprehensive description of all Amazon RDS Query APIs and data types. Note that this API is asynchronous and some actions may require polling to determine when an action has been applied. See the parameter description to determine if a change is applied immediately or on the next instance reboot or during the maintenance window. For more information on Amazon RDS concepts and usage scenarios, go to the `Amazon RDS User Guide`_. s 2013-09-09s us-east-1srds.us-east-1.amazonaws.comt InvalidSubnettDBParameterGroupQuotaExceededtDBSubnetGroupAlreadyExiststDBSubnetGroupQuotaExceededtInstanceQuotaExceededtInvalidRestoretInvalidDBParameterGroupStatetAuthorizationQuotaExceededtDBSecurityGroupAlreadyExiststInsufficientDBInstanceCapacitytReservedDBInstanceQuotaExceededtDBSecurityGroupNotFoundtDBInstanceAlreadyExiststReservedDBInstanceNotFoundt"DBSubnetGroupDoesNotCoverEnoughAZstInvalidDBSecurityGroupStatetInvalidVPCNetworkStatet#ReservedDBInstancesOfferingNotFoundtSNSTopicArnNotFoundtSNSNoAuthorizationtSnapshotQuotaExceededtOptionGroupQuotaExceededtDBParameterGroupNotFoundtSNSInvalidTopictInvalidDBSubnetGroupStatetDBSubnetGroupNotFoundtInvalidOptionGroupStatetSourceNotFoundtSubscriptionCategoryNotFoundtEventSubscriptionQuotaExceededtDBSecurityGroupNotSupportedtInvalidEventSubscriptionStatetInvalidDBSubnetStatetInvalidDBSnapshotStatetSubscriptionAlreadyExisttDBSecurityGroupQuotaExceededtProvisionedIopsNotAvailableInAZtAuthorizationNotFoundtOptionGroupAlreadyExiststSubscriptionNotFoundtDBUpgradeDependencyFailuretPointInTimeRestoreNotEnabledtAuthorizationAlreadyExiststDBSubnetQuotaExceededtOptionGroupNotFoundtDBParameterGroupAlreadyExiststDBInstanceNotFoundtReservedDBInstanceAlreadyExiststInvalidDBInstanceStatetDBSnapshotNotFoundtDBSnapshotAlreadyExiststStorageQuotaExceededtSubnetAlreadyInUsecKsr|jdd}|s3t||j|j}nd|krO|j|dRP(RDtdb_security_group_nametcidriptec2_security_group_nametec2_security_group_idtec2_security_group_owner_idRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt#authorize_db_security_group_ingresss2          c Cs[i|d6|d6}|d k r9|j||ddn|jdddd d d d |S(s Copies the specified DBSnapshot. The source DBSnapshot must be in the "available" state. :type source_db_snapshot_identifier: string :param source_db_snapshot_identifier: The identifier for the source DB snapshot. Constraints: + Must be the identifier for a valid system snapshot in the "available" state. Example: `rds:mydb-2012-04-02-00-01` :type target_db_snapshot_identifier: string :param target_db_snapshot_identifier: The identifier for the copied snapshot. Constraints: + Cannot be null, empty, or blank + Must contain from 1 to 255 alphanumeric characters or hyphens + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens Example: `my-db-snapshot` :type tags: list :param tags: A list of tags. tSourceDBSnapshotIdentifiertTargetDBSnapshotIdentifiers Tags.memberRURVRItCopyDBSnapshotRKRLRMRNRON(sKeysValue(R>RXRP(RDtsource_db_snapshot_identifierttarget_db_snapshot_identifierRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcopy_db_snapshots$    c Csui|d6|d6|d6|d6|d6|d6}|tk rI||dtbuild_list_paramststrtlowerRXRP(RDtdb_instance_identifiertallocated_storagetdb_instance_classtenginetmaster_usernametmaster_user_passwordtdb_nametdb_security_groupstvpc_security_group_idstavailability_zonetdb_subnet_group_nametpreferred_maintenance_windowtdb_parameter_group_nametbackup_retention_periodtpreferred_backup_windowtporttmulti_aztengine_versiontauto_minor_version_upgradet license_modeltiopstoption_group_nametcharacter_set_nametpublicly_accessibleRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_db_instanceAsxK                                      c Cs"i|d6|d6} |dk r-|| dRRRXRP( RDRtsource_db_instance_identifierRRRRRRRRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_db_instance_read_replicas8]                c Csbi|d6|d6|d6}|dk r@|j||ddn|jddd d d d d |S(sL Creates a new DB parameter group. A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup . Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance . When you associate a new DB parameter group with a running DB instance, you need to reboot the DB Instance for the new DB parameter group and associated settings to take effect. :type db_parameter_group_name: string :param db_parameter_group_name: The name of the DB parameter group. Constraints: + Must be 1 to 255 alphanumeric characters + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens This value is stored as a lower-case string. :type db_parameter_group_family: string :param db_parameter_group_family: The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family. :type description: string :param description: The description for the DB parameter group. :type tags: list :param tags: A list of tags. RxtDBParameterGroupFamilyt Descriptions Tags.memberRURVRItCreateDBParameterGroupRKRLRMRNRON(sKeysValue(R>RXRP(RDRtdb_parameter_group_familyt descriptionRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_db_parameter_groupCs-    c Cs[i|d6|d6}|d k r9|j||ddn|jdddd d d d |S(s Creates a new DB security group. DB security groups control access to a DB instance. :type db_security_group_name: string :param db_security_group_name: The name for the DB security group. This value is stored as a lowercase string. Constraints: + Must be 1 to 255 alphanumeric characters + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens + Must not be "Default" + May not contain spaces Example: `mysecuritygroup` :type db_security_group_description: string :param db_security_group_description: The description for the DB security group. :type tags: list :param tags: A list of tags. R\tDBSecurityGroupDescriptions Tags.memberRURVRItCreateDBSecurityGroupRKRLRMRNRON(sKeysValue(R>RXRP(RDRbtdb_security_group_descriptionRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_db_security_groups    c Cs[i|d6|d6}|d k r9|j||ddn|jdddd d d d |S(s Creates a DBSnapshot. The source DBInstance must be in "available" state. :type db_snapshot_identifier: string :param db_snapshot_identifier: The identifier for the DB snapshot. Constraints: + Cannot be null, empty, or blank + Must contain from 1 to 255 alphanumeric characters or hyphens + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens Example: `my-snapshot-id` :type db_instance_identifier: string :param db_instance_identifier: The DB instance identifier. This is the unique key that identifies a DB instance. This parameter isn't case sensitive. Constraints: + Must contain from 1 to 63 alphanumeric characters or hyphens + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens :type tags: list :param tags: A list of tags. tDBSnapshotIdentifierRns Tags.memberRURVRItCreateDBSnapshotRKRLRMRNRON(sKeysValue(R>RXRP(RDtdb_snapshot_identifierRRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_db_snapshots#    c Csni|d6|d6}|j||d|dk rL|j||ddn|jddd d d d d |S(s Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region. :type db_subnet_group_name: string :param db_subnet_group_name: The name for the DB subnet group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default". Example: `mySubnetgroup` :type db_subnet_group_description: string :param db_subnet_group_description: The description for the DB subnet group. :type subnet_ids: list :param subnet_ids: The EC2 Subnet IDs for the DB subnet group. :type tags: list :param tags: A list of tags into tuples. RvtDBSubnetGroupDescriptionsSubnetIds.members Tags.memberRURVRItCreateDBSubnetGroupRKRLRMRNRON(sKeysValue(RR>RXRP(RDRtdb_subnet_group_descriptiont subnet_idsRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_db_subnet_groups     c Csi|d6|d6}|dk r-||dRRRRXRP( RDRQt sns_topic_arnt source_typetevent_categoriest source_idstenabledRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_event_subscriptions2R             c Csii|d6|d6|d6|d6}|dk rG|j||ddn|jdd d d d d d|S(s Creates a new option group. You can create up to 20 option groups. :type option_group_name: string :param option_group_name: Specifies the name of the option group to be created. Constraints: + Must be 1 to 255 alphanumeric characters or hyphens + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens Example: `myoptiongroup` :type engine_name: string :param engine_name: Specifies the name of the engine that this option group should be associated with. :type major_engine_version: string :param major_engine_version: Specifies the major version of the engine that this option group should be associated with. :type option_group_description: string :param option_group_description: The description of the option group. :type tags: list :param tags: A list of tags. Rt EngineNametMajorEngineVersiontOptionGroupDescriptions Tags.memberRURVRItCreateOptionGroupRKRLRMRNRON(sKeysValue(R>RXRP(RDRt engine_nametmajor_engine_versiontoption_group_descriptionRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytcreate_option_groupss#    c Csmi|d6}|d k r2t|j|dRRRP(RDRtskip_final_snapshottfinal_db_snapshot_identifierRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_db_instances7     c Cs/i|d6}|jddddddd|S( s3 Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted. The specified DB parameter group cannot be associated with any DB instances. :type db_parameter_group_name: string :param db_parameter_group_name: The name of the DB parameter group. Constraints: + Must be the name of an existing DB parameter group + You cannot delete a default DB parameter group + Cannot be associated with any DB instances RxRItDeleteDBParameterGroupRKRLRMRNRO(RP(RDRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_db_parameter_groups   c Cs/i|d6}|jddddddd|S( sN Deletes a DB security group. The specified DB security group must not be associated with any DB instances. :type db_security_group_name: string :param db_security_group_name: The name of the DB security group to delete. You cannot delete the default DB security group. Constraints: + Must be 1 to 255 alphanumeric characters + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens + Must not be "Default" + May not contain spaces R\RItDeleteDBSecurityGroupRKRLRMRNRO(RP(RDRbRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_db_security_groups   c Cs/i|d6}|jddddddd|S( sF Deletes a DBSnapshot. The DBSnapshot must be in the `available` state to be deleted. :type db_snapshot_identifier: string :param db_snapshot_identifier: The DBSnapshot identifier. Constraints: Must be the name of an existing DB snapshot in the `available` state. RRItDeleteDBSnapshotRKRLRMRNRO(RP(RDRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_db_snapshots  c Cs/i|d6}|jddddddd|S( s  Deletes a DB subnet group. The specified database subnet group must not be associated with any DB instances. :type db_subnet_group_name: string :param db_subnet_group_name: The name of the database subnet group to delete. You cannot delete the default subnet group. Constraints: + Must be 1 to 255 alphanumeric characters + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens RvRItDeleteDBSubnetGroupRKRLRMRNRO(RP(RDRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_db_subnet_group.s   c Cs/i|d6}|jddddddd|S( s Deletes an RDS event notification subscription. :type subscription_name: string :param subscription_name: The name of the RDS event notification subscription you want to delete. RGRItDeleteEventSubscriptionRKRLRMRNRO(RP(RDRQRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_event_subscriptionHs  c Cs/i|d6}|jddddddd|S( s Deletes an existing option group. :type option_group_name: string :param option_group_name: The name of the option group to be deleted. You cannot delete default option groups. RRItDeleteOptionGroupRKRLRMRNRO(RP(RDRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdelete_option_groupWs  c Csi}|dk r||dRRRP( RDRRRt max_recordstmarkert default_onlytlist_supported_character_setsRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_engine_versionshs*5             c Csi}|dk r||dRXRP(RDRtfiltersRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_instancess &         c Csi|d6}|dk r&||dRP(RDRtfilename_containstfile_last_writtent file_sizeRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_log_filess*            c Csi}|dk r||dRXRP(RDRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_parameter_groups$s &         c Cszi|d6}|d k r&||dRP(RDRtsourceRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_parameters[s'        c Csi}|dk r||dRXRP(RDRbRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_security_groupss          c Csi}|dk r||dRXRP(RDRRt snapshot_typeRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_snapshotss(<             c Csi}|dk r||dRXRP(RDRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_db_subnet_groupss "         c Csai|d6}|d k r&||dRP(RDRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt"describe_engine_default_parametersBs      c CsAi}|d k r||dRP(RDRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_event_categorieshs   c Csi}|dk r||dRXRP(RDRQRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_event_subscriptions~s #         c Csi} |dk r|| dRRP( RDRRRt start_timetend_timetdurationRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_eventss.F                  c Cszi|d6}|d k r&||dRP(RDRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_option_group_optionss        c Csi}|dk r||dRXRP(RDRRRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_option_groups:s(&             c Csi|d6}|dk r&||dRRRP( RDRRRRtvpcRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt&describe_orderable_db_instance_optionsus$0             c Cs:i} |dk r|| dRRRXRP( RDtreserved_db_instance_idt!reserved_db_instances_offering_idRR tproduct_descriptiont offering_typeRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdescribe_reserved_db_instancess:D                    c Csi} |dk r|| dRRRP( RDRRR RRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt(describe_reserved_db_instances_offerings s,=                c Cshi|d6|d6}|d k r-||dRP(RDRt log_file_nameRtnumber_of_linesRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytdownload_db_log_file_portionn s      c Cs/i|d6}|jddddddd|S( s Lists all tags on an Amazon RDS resource. For an overview on tagging an Amazon RDS resource, see `Tagging Amazon RDS Resources`_. :type resource_name: string :param resource_name: The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see ` Constructing an RDS Amazon Resource Name (ARN)`_. RTRItListTagsForResourceRKRLRMRNRO(RP(RDRYRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytlist_tags_for_resource s   c Csi|d6}|tk r&||dRRRRP(RDRRRRRtapply_immediatelyRRRRRRRtallow_major_version_upgradeRRRtnew_db_instance_identifierRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytmodify_db_instance s`A                                  cCsEi|d6}|j||dd|jd dddddd|S(sz Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: `ParameterName`, `ParameterValue`, and `ApplyMethod`. A maximum of 20 parameters can be modified in a single request. The `apply-immediate` method can be used only for dynamic parameters; the `pending-reboot` method can be used with MySQL and Oracle DB instances for either dynamic or static parameters. For Microsoft SQL Server DB instances, the `pending-reboot` method can be used only for static parameters. :type db_parameter_group_name: string :param db_parameter_group_name: The name of the DB parameter group. Constraints: + Must be the name of an existing DB parameter group + Must be 1 to 255 alphanumeric characters + First character must be a letter + Cannot end with a hyphen or contain two consecutive hyphens :type parameters: list :param parameters: An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request. Valid Values (for the application method): `immediate | pending-reboot` You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots. RxsParameters.membert ParameterNametParameterValueRRt ApplyTypetDataTypet AllowedValuest IsModifiabletMinimumEngineVersiont ApplyMethodRItModifyDBParameterGroupRKRLRMRNRO( R3R4s DescriptionsSourceR5R6R7R8R9R:(RXRP(RDRt parametersRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytmodify_db_parameter_group s(  c Cs[i|d6}|j||d|d k r9||dRP(RDRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytmodify_db_subnet_groupO s     c Csi|d6}|d k r&||dRRRRP(RDRQRRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytmodify_event_subscriptionp s *          c Csi|d6}|dk r2|j||ddn|dk rT|j||dn|dk ryt|j|d RXRRRRP(RDRtoptions_to_includetoptions_to_removeR/RO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytmodify_option_group s"        c Csai|d6}|d k r&||dRP(RDRRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytpromote_read_replica s/      c Csi|d6}|dk r&||dRXRP(RDRRtdb_instance_countRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt'purchase_reserved_db_instances_offering s        c CsTi|d6}|d k r2t|j|dRRRP(RDRtforce_failoverRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytreboot_db_instance< s*   c Cs6i|d6|d6}|jddddddd |S( s Removes a source identifier from an existing RDS event notification subscription. :type subscription_name: string :param subscription_name: The name of the RDS event notification subscription you want to remove a source identifier from. :type source_identifier: string :param source_identifier: The source identifier to be removed from the subscription, such as the **DB instance identifier** for a DB instance or the name of a security group. RGRHRIt&RemoveSourceIdentifierFromSubscriptionRKRLRMRNRO(RP(RDRQRRRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt*remove_source_identifier_from_subscriptiono s  c CsBi|d6}|j||d|jddddddd |S( s< Removes metadata tags from an Amazon RDS resource. For an overview on tagging an Amazon RDS resource, see `Tagging Amazon RDS Resources`_. :type resource_name: string :param resource_name: The Amazon RDS resource the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see ` Constructing an RDS Amazon Resource Name (ARN)`_. :type tag_keys: list :param tag_keys: The tag key (name) of the tag to be removed. RTsTagKeys.memberRItRemoveTagsFromResourceRKRLRMRNRO(RRP(RDRYttag_keysRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytremove_tags_from_resource s   cCsyi|d6}|dk r2t|j|dRRRXRP(RDRtreset_all_parametersR<RO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pytreset_db_parameter_group s1     c Csi|d6|d6}|dk r-||dRRRXRP(RDRRRRRRRRRRRRRRRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt$restore_db_instance_from_db_snapshot sN                         c Csi|d6|d6}|dk r-||d| |d RRRXRP(RDRttarget_db_instance_identifiert restore_timetuse_latest_restorable_timeRRRRRRRRRRRRRZRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt$restore_db_instance_to_point_in_time sX                            c Csi|d6}|d k r&||dRP(RDRbRcRdReRfRO((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyt revoke_db_security_group_ingressrs-          c Csd|d<|jd|ddddd|}|j}tjj||jd krftj|Stj|}|jd ijd d}|j j||j } | |j|j d |dS( NtJSONt ContentTypeRIRKRLRMRNROitErrortCodetbody( t make_requesttreadtbototlogtdebugtstatusRtloadstgetR>t_faultst ResponseErrortreason( RDRIRKRMROtresponseRmt json_bodyt fault_nametexception_class((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyRPs   (wt__name__t __module__t__doc__t APIVersionR?R@RRwRRRRR R R R R RRRRRRRRRRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:RvRCRFRSR[R>RgRmRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR R"R(R*R2R=R?RARIRKRORSRURXR\R^RfRhRP(((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyRs                                                       '  = 3|w ; + 2 *m 2 @       G78 52 .N 2%  2 ](:? ] M )  d 3 !9- 9 ' 3  @   7( Rptboto.connectionRtboto.regioninfoRtboto.exceptionRt boto.rds2Rt boto.compatRR(((s=/opt/freeware/lib/python2.7/site-packages/boto/rds2/layer1.pyts