public void NeptuneCopyDBParameterGroup() { #region copy-db-parameter-group-610d4dba-2c87-467f-ae5d-edd7f8e47349 var response = client.CopyDBParameterGroup(new CopyDBParameterGroupRequest { SourceDBParameterGroupIdentifier = "mymysqlparametergroup", TargetDBParameterGroupDescription = "My MySQL parameter group copy", TargetDBParameterGroupIdentifier = "mymysqlparametergroup-copy" }); DBParameterGroup dbParameterGroup = response.DBParameterGroup; #endregion }
private Amazon.Neptune.Model.CopyDBParameterGroupResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.CopyDBParameterGroupRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "CopyDBParameterGroup"); try { #if DESKTOP return(client.CopyDBParameterGroup(request)); #elif CORECLR return(client.CopyDBParameterGroupAsync(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; } }