public void NeptuneCreateDBCluster() { #region create-db-cluster-423b998d-eba9-40dd-8e19-96c5b6e5f31d var response = client.CreateDBCluster(new CreateDBClusterRequest { AvailabilityZones = new List <string> { "us-east-1a" }, BackupRetentionPeriod = 1, DBClusterIdentifier = "mydbcluster", DBClusterParameterGroupName = "mydbclusterparametergroup", DatabaseName = "myauroradb", Engine = "aurora", EngineVersion = "5.6.10a", MasterUserPassword = "******", MasterUsername = "******", Port = 3306, StorageEncrypted = true }); DBCluster dbCluster = response.DBCluster; #endregion }
public void Setup() { _dbCluster = new DBCluster { AllocatedStorage = 4 }; _rdsClusterDataProvider = new RdsClusterAlarmDataProvider(); }
public void NeptuneFailoverDBCluster() { #region failover-db-cluster-9e7f2f93-d98c-42c7-bb0e-d6c485c096d6 var response = client.FailoverDBCluster(new FailoverDBClusterRequest { DBClusterIdentifier = "myaurorainstance-cluster", TargetDBInstanceIdentifier = "myaurorareplica" }); DBCluster dbCluster = response.DBCluster; #endregion }
public void NeptuneDeleteDBCluster() { #region delete-db-cluster-927fc2c8-6c67-4075-b1ba-75490be0f7d6 var response = client.DeleteDBCluster(new DeleteDBClusterRequest { DBClusterIdentifier = "mydbcluster", SkipFinalSnapshot = true }); DBCluster dbCluster = response.DBCluster; #endregion }
public void NeptuneRestoreDBClusterToPointInTime() { #region to-restore-a-db-cluster-to-a-point-in-time-1473962082214 var response = client.RestoreDBClusterToPointInTime(new RestoreDBClusterToPointInTimeRequest { DBClusterIdentifier = "sample-restored-cluster1", RestoreToTime = new DateTime(2016, 9, 13, 11, 45, 0), SourceDBClusterIdentifier = "sample-cluster1" }); DBCluster dbCluster = response.DBCluster; #endregion }
public void NeptuneRestoreDBClusterFromSnapshot() { #region to-restore-an-amazon-aurora-db-cluster-from-a-db-cluster-snapshot-1473958144325 var response = client.RestoreDBClusterFromSnapshot(new RestoreDBClusterFromSnapshotRequest { DBClusterIdentifier = "restored-cluster1", Engine = "aurora", SnapshotIdentifier = "sample-cluster-snapshot1" }); DBCluster dbCluster = response.DBCluster; #endregion }
public void NeptuneModifyDBCluster() { #region modify-db-cluster-a370ee1b-768d-450a-853b-707cb1ab663d var response = client.ModifyDBCluster(new ModifyDBClusterRequest { ApplyImmediately = true, DBClusterIdentifier = "mydbcluster", MasterUserPassword = "******", NewDBClusterIdentifier = "mynewdbcluster", PreferredBackupWindow = "04:00-04:30", PreferredMaintenanceWindow = "Tue:05:00-Tue:05:30" }); DBCluster dbCluster = response.DBCluster; #endregion }