public void WAFRegionalGetChangeToken() { #region get-change-token-example-1471635120794 var response = client.GetChangeToken(new GetChangeTokenRequest { }); string changeToken = response.ChangeToken; #endregion }
private Amazon.WAFRegional.Model.GetChangeTokenResponse CallAWSServiceOperation(IAmazonWAFRegional client, Amazon.WAFRegional.Model.GetChangeTokenRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS WAF Regional", "GetChangeToken"); try { #if DESKTOP return(client.GetChangeToken(request)); #elif CORECLR return(client.GetChangeTokenAsync(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; } }