List of usage examples for com.amazonaws.services.rds AmazonRDS modifyDBInstance
DBInstance modifyDBInstance(ModifyDBInstanceRequest modifyDBInstanceRequest);
Modifies settings for a DB instance.
From source file:jp.classmethod.aws.gradle.rds.AmazonRDSMigrateDBInstanceTask.java
License:Apache License
private void modifyDBInstance(AmazonRDS rds) { // to enable conventionMappings feature String dbInstanceIdentifier = getDbInstanceIdentifier(); if (dbInstanceIdentifier == null) { throw new GradleException("dbInstanceIdentifier is required"); }// w ww . ja va 2 s . c o m ModifyDBInstanceRequest request = new ModifyDBInstanceRequest() .withDBInstanceIdentifier(dbInstanceIdentifier).withAllocatedStorage(getAllocatedStorage()) .withDBInstanceClass(getDbInstanceClass()).withMasterUserPassword(getMasterUserPassword()) .withVpcSecurityGroupIds(getVpcSecurityGroupIds()) .withPreferredMaintenanceWindow(getPreferredMaintenanceWindow()) .withDBParameterGroupName(getDbParameterGroupName()) .withBackupRetentionPeriod(getBackupRetentionPeriod()) .withPreferredBackupWindow(getPreferredBackupWindow()).withMultiAZ(getMultiAZ()) .withEngineVersion(getEngineVersion()).withAutoMinorVersionUpgrade(getAutoMinorVersionUpgrade()) .withIops(getIops()).withOptionGroupName(getOptionGroupName()).withStorageType(getStorageType()) .withTdeCredentialArn(getTdeCredentialArn()).withTdeCredentialPassword(getTdeCredentialPassword()); dbInstance = rds.modifyDBInstance(request); getLogger().info("Modify RDS instance requested: {}", dbInstance.getDBInstanceIdentifier()); }
From source file:jp.classmethod.aws.gradle.rds.AmazonRDSModifyDBInstanceTask.java
License:Apache License
@TaskAction public void modifyDBInstance() { // to enable conventionMappings feature String dbInstanceIdentifier = getDbInstanceIdentifier(); if (dbInstanceIdentifier == null) { throw new GradleException("dbInstanceIdentifier is required"); }// w ww .j av a 2 s . c o m AmazonRDSPluginExtension ext = getProject().getExtensions().getByType(AmazonRDSPluginExtension.class); AmazonRDS rds = ext.getClient(); ModifyDBInstanceRequest request = new ModifyDBInstanceRequest() .withDBInstanceIdentifier(dbInstanceIdentifier).withAllocatedStorage(getAllocatedStorage()) .withDBInstanceClass(getDbInstanceClass()).withMasterUserPassword(getMasterUserPassword()) .withVpcSecurityGroupIds(getVpcSecurityGroupIds()) .withPreferredMaintenanceWindow(getPreferredMaintenanceWindow()) .withDBParameterGroupName(getDbParameterGroupName()) .withBackupRetentionPeriod(getBackupRetentionPeriod()) .withPreferredBackupWindow(getPreferredBackupWindow()).withMultiAZ(getMultiAZ()) .withEngineVersion(getEngineVersion()).withAutoMinorVersionUpgrade(getAutoMinorVersionUpgrade()) .withIops(getIops()).withOptionGroupName(getOptionGroupName()).withStorageType(getStorageType()) .withTdeCredentialArn(getTdeCredentialArn()).withTdeCredentialPassword(getTdeCredentialPassword()); dbInstance = rds.modifyDBInstance(request); getLogger().info("Modify RDS instance requested: {}", dbInstance.getDBInstanceIdentifier()); }
From source file:org.xmlsh.aws.gradle.rds.AmazonRDSMigrateDBInstanceTask.java
License:BSD License
private void modifyDBInstance(AmazonRDS rds) { // to enable conventionMappings feature String dbInstanceIdentifier = getDbInstanceIdentifier(); if (dbInstanceIdentifier == null) throw new GradleException("dbInstanceIdentifier is required"); ModifyDBInstanceRequest request = new ModifyDBInstanceRequest() .withDBInstanceIdentifier(dbInstanceIdentifier).withAllocatedStorage(getAllocatedStorage()) .withDBInstanceClass(getDbInstanceClass()).withMasterUserPassword(getMasterUserPassword()) .withVpcSecurityGroupIds(getVpcSecurityGroupIds()) .withPreferredMaintenanceWindow(getPreferredMaintenanceWindow()) .withDBParameterGroupName(getDbParameterGroupName()) .withBackupRetentionPeriod(getBackupRetentionPeriod()) .withPreferredBackupWindow(getPreferredBackupWindow()).withMultiAZ(getMultiAZ()) .withEngineVersion(getEngineVersion()).withAutoMinorVersionUpgrade(getAutoMinorVersionUpgrade()) .withIops(getIops()).withOptionGroupName(getOptionGroupName()).withStorageType(getStorageType()) .withTdeCredentialArn(getTdeCredentialArn()).withTdeCredentialPassword(getTdeCredentialPassword()); dbInstance = rds.modifyDBInstance(request); getLogger().info("Modify RDS instance requested: {}", dbInstance.getDBInstanceIdentifier()); }
From source file:org.xmlsh.aws.gradle.rds.AmazonRDSModifyDBInstanceTask.java
License:BSD License
@TaskAction public void modifyDBInstance() { // to enable conventionMappings feature String dbInstanceIdentifier = getDbInstanceIdentifier(); if (dbInstanceIdentifier == null) throw new GradleException("dbInstanceIdentifier is required"); AmazonRDSPluginExtension ext = getProject().getExtensions().getByType(AmazonRDSPluginExtension.class); AmazonRDS rds = ext.getClient(); ModifyDBInstanceRequest request = new ModifyDBInstanceRequest() .withDBInstanceIdentifier(dbInstanceIdentifier).withAllocatedStorage(getAllocatedStorage()) .withDBInstanceClass(getDbInstanceClass()).withMasterUserPassword(getMasterUserPassword()) .withVpcSecurityGroupIds(getVpcSecurityGroupIds()) .withPreferredMaintenanceWindow(getPreferredMaintenanceWindow()) .withDBParameterGroupName(getDbParameterGroupName()) .withBackupRetentionPeriod(getBackupRetentionPeriod()) .withPreferredBackupWindow(getPreferredBackupWindow()).withMultiAZ(getMultiAZ()) .withEngineVersion(getEngineVersion()).withAutoMinorVersionUpgrade(getAutoMinorVersionUpgrade()) .withIops(getIops()).withOptionGroupName(getOptionGroupName()).withStorageType(getStorageType()) .withTdeCredentialArn(getTdeCredentialArn()).withTdeCredentialPassword(getTdeCredentialPassword()); dbInstance = rds.modifyDBInstance(request); getLogger().info("Modify RDS instance requested: {}", dbInstance.getDBInstanceIdentifier()); }