Пример #1
0
        public void CostAndUsageReportDeleteReportDefinition()
        {
            #region to-delete-a-report

            var response = client.DeleteReportDefinition(new DeleteReportDefinitionRequest
            {
                ReportName = "ExampleReport"
            });


            #endregion
        }
 private Amazon.CostAndUsageReport.Model.DeleteReportDefinitionResponse CallAWSServiceOperation(IAmazonCostAndUsageReport client, Amazon.CostAndUsageReport.Model.DeleteReportDefinitionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Cost and Usage Report", "DeleteReportDefinition");
     try
     {
         #if DESKTOP
         return(client.DeleteReportDefinition(request));
         #elif CORECLR
         return(client.DeleteReportDefinitionAsync(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;
     }
 }