public void WAFRegionalCreateIPSet() { #region createipset-1472501003122 var response = client.CreateIPSet(new CreateIPSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", Name = "MyIPSetFriendlyName" }); string changeToken = response.ChangeToken; IPSet ipSet = response.IPSet; #endregion }
private Amazon.WAFRegional.Model.CreateIPSetResponse CallAWSServiceOperation(IAmazonWAFRegional client, Amazon.WAFRegional.Model.CreateIPSetRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS WAF Regional", "CreateIPSet"); try { #if DESKTOP return(client.CreateIPSet(request)); #elif CORECLR return(client.CreateIPSetAsync(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; } }