public void NeptuneCreateDBInstance() { #region create-db-instance-57eb5d16-8bf8-4c84-9709-1700322b37b9 var response = client.CreateDBInstance(new CreateDBInstanceRequest { AllocatedStorage = 5, DBInstanceClass = "db.t2.micro", DBInstanceIdentifier = "mymysqlinstance", Engine = "MySQL", MasterUserPassword = "******", MasterUsername = "******" }); DBInstance dbInstance = response.DBInstance; #endregion }
private Amazon.Neptune.Model.CreateDBInstanceResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.CreateDBInstanceRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "CreateDBInstance"); try { #if DESKTOP return(client.CreateDBInstance(request)); #elif CORECLR return(client.CreateDBInstanceAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }