Example #1
0
def delete_db_snapshot(DBSnapshotIdentifier, **optional_params):
    valid_optional_params = []
    mandatory_params = {
        'Action': 'DeleteDBSnapshot',
        'DBSnapshotIdentifier': DBSnapshotIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #2
0
def describe_db_snapshots(**optional_params):
    valid_optional_params = [
        'DBSnapshotIdentifier', 'DBInstanceIdentifier', 'SnapshotType'
    ]
    mandatory_params = {'Action': 'DescribeDBSnapshots'}
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)
Example #3
0
def delete_db_instance(DBInstanceIdentifier, **optional_params):
    valid_optional_params = ['FinalDBSnapshotIdentifier', 'SkipFinalSnapshot']
    mandatory_params = {
        'Action': 'DeleteDBInstance',
        'DBInstanceIdentifier': DBInstanceIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #4
0
def delete_db_snapshot(DBSnapshotIdentifier, **optional_params):
    valid_optional_params = []
    mandatory_params = {
        'Action': 'DeleteDBSnapshot',
        'DBSnapshotIdentifier': DBSnapshotIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)
Example #5
0
def delete_db_instance(DBInstanceIdentifier, **optional_params):
    valid_optional_params = ['FinalDBSnapshotIdentifier', 'SkipFinalSnapshot']
    mandatory_params = {
        'Action': 'DeleteDBInstance',
        'DBInstanceIdentifier': DBInstanceIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)
Example #6
0
def modify_db_instance(DBInstanceIdentifier, **optional_params):
    valid_optional_params = [
        'PreferredMaintenanceWindow', 'PreferredBackupWindow',
        'BackupRetentionPeriod', 'NewDBInstanceIdentifier'
    ]
    mandatory_params = {
        'Action': 'ModifyDBInstance',
        'DBInstanceIdentifier': DBInstanceIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)
Example #7
0
def restore_db_instance_from_db_snapshot(DBInstanceIdentifier, DBSnapshotIdentifier, **optional_params):
    valid_optional_params = [
        'DBInstanceClass',
        'PreferredMaintenanceWindow',
        'PreferredBackupWindow',
        'BackupRetentionPeriod']
    mandatory_params = {
        'Action': 'RestoreDBInstanceFromDBSnapshot',
        'DBInstanceIdentifier': DBInstanceIdentifier,
        'DBSnapshotIdentifier': DBSnapshotIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #8
0
def modify_db_instance(DBInstanceIdentifier, **optional_params):
    valid_optional_params = [
        'PreferredMaintenanceWindow',
        'PreferredBackupWindow',
        'BackupRetentionPeriod',
        'NewDBInstanceIdentifier'
    ]
    mandatory_params = {
        'Action': 'ModifyDBInstance',
        'DBInstanceIdentifier': DBInstanceIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #9
0
def restore_db_instance_from_db_snapshot(DBInstanceIdentifier,
                                         DBSnapshotIdentifier,
                                         **optional_params):
    valid_optional_params = [
        'DBInstanceClass', 'PreferredMaintenanceWindow',
        'PreferredBackupWindow', 'BackupRetentionPeriod'
    ]
    mandatory_params = {
        'Action': 'RestoreDBInstanceFromDBSnapshot',
        'DBInstanceIdentifier': DBInstanceIdentifier,
        'DBSnapshotIdentifier': DBSnapshotIdentifier,
    }
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)
Example #10
0
def create_db_instance(DBInstanceIdentifier, DBInstanceClass, Engine,
        AllocatedStorage, MasterUsername, MasterUserPassword, **optional_params):
    valid_optional_params = ['Port', 'EngineVersion',
        'PreferredMaintenanceWindow', 'PreferredBackupWindow',
        'BackupRetentionPeriod']
    mandatory_params = {
        'Action': 'CreateDBInstance',
        'DBInstanceIdentifier': DBInstanceIdentifier,
        'DBInstanceClass': DBInstanceClass,
        'Engine': Engine,
        'AllocatedStorage': AllocatedStorage,
        'MasterUsername': MasterUsername,
        'MasterUserPassword': MasterUserPassword,
    }
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #11
0
def create_db_instance(DBInstanceIdentifier, DBInstanceClass, Engine,
                       AllocatedStorage, MasterUsername, MasterUserPassword,
                       **optional_params):
    valid_optional_params = [
        'Port', 'EngineVersion', 'PreferredMaintenanceWindow',
        'PreferredBackupWindow', 'BackupRetentionPeriod'
    ]
    mandatory_params = {
        'Action': 'CreateDBInstance',
        'DBInstanceIdentifier': DBInstanceIdentifier,
        'DBInstanceClass': DBInstanceClass,
        'Engine': Engine,
        'AllocatedStorage': AllocatedStorage,
        'MasterUsername': MasterUsername,
        'MasterUserPassword': MasterUserPassword,
    }
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)
Example #12
0
def describe_db_snapshots(**optional_params):
    valid_optional_params = ['DBSnapshotIdentifier', 'DBInstanceIdentifier', 'SnapshotType']
    mandatory_params = {'Action': 'DescribeDBSnapshots'}
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #13
0
def describe_db_instances(**optional_params):
    valid_optional_params = ['DBInstanceIdentifier']
    mandatory_params = {'Action': 'DescribeDBInstances'}
    return common.do_rds_request(valid_optional_params, optional_params, mandatory_params)
Example #14
0
def describe_db_instances(**optional_params):
    valid_optional_params = ['DBInstanceIdentifier']
    mandatory_params = {'Action': 'DescribeDBInstances'}
    return common.do_rds_request(valid_optional_params, optional_params,
                                 mandatory_params)