daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Feb 11th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CreateDBInstanceRequest createDBInstanceRequest = new CreateDBInstanceRequest();
  2. createDBInstanceRequest.setEngine("MySQL");    
  3. createDBInstanceRequest.setLicenseModel("general-public-license");
  4. createDBInstanceRequest.setEngineVersion("5.5.25a");
  5. createDBInstanceRequest.setDBInstanceClass("db.t1.micro");  
  6. createDBInstanceRequest.setMultiAZ(false);
  7. createDBInstanceRequest.setAutoMinorVersionUpgrade(true);
  8. createDBInstanceRequest.setAllocatedStorage(5);  
  9. createDBInstanceRequest.setDBInstanceIdentifier("mydbinstance");
  10. createDBInstanceRequest.setMasterUsername("master");
  11. createDBInstanceRequest.setMasterUserPassword("password");
  12. createDBInstanceRequest.setDBName("dbname");
  13. createDBInstanceRequest.setPort(3306);
  14. createDBInstanceRequest.setDBParameterGroupName("default.mysql5.5");
  15. createDBInstanceRequest.setDBSubnetGroupName("dev");
  16. createDBInstanceRequest.setBackupRetentionPeriod(1);
  17. DBInstance dbInstance = RDS.createDBInstance(createDBInstanceRequest);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top