コード例 #1
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #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)
コード例 #3
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #7
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #8
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #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)
コード例 #10
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #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)
コード例 #12
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #13
0
ファイル: cloud.py プロジェクト: sandy41/jcsclient
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)
コード例 #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)