예제 #1
0
        public void WAFGetIPSet()
        {
            #region getipset-1474658688675

            var response = client.GetIPSet(new GetIPSetRequest
            {
                IPSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
            });

            IPSet ipSet = response.IPSet;

            #endregion
        }
 private Amazon.WAF.Model.GetIPSetResponse CallAWSServiceOperation(IAmazonWAF client, Amazon.WAF.Model.GetIPSetRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS WAF", "GetIPSet");
     try
     {
         #if DESKTOP
         return(client.GetIPSet(request));
         #elif CORECLR
         return(client.GetIPSetAsync(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;
     }
 }