public void WAFRegionalCreateXssMatchSet() { #region createxssmatchset-1474560868500 var response = client.CreateXssMatchSet(new CreateXssMatchSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", Name = "MySampleXssMatchSet" }); string changeToken = response.ChangeToken; XssMatchSet xssMatchSet = response.XssMatchSet; #endregion }
private Amazon.WAFRegional.Model.CreateXssMatchSetResponse CallAWSServiceOperation(IAmazonWAFRegional client, Amazon.WAFRegional.Model.CreateXssMatchSetRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS WAF Regional", "CreateXssMatchSet"); try { #if DESKTOP return(client.CreateXssMatchSet(request)); #elif CORECLR return(client.CreateXssMatchSetAsync(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; } }