CostandUsageReportService / Client / delete_report_definition

delete_report_definition#

CostandUsageReportService.Client.delete_report_definition(**kwargs)#

Deletes the specified report. Any tags associated with the report are also deleted.

See also: AWS API Documentation

Request Syntax

response = client.delete_report_definition(
    ReportName='string'
)
Parameters:

ReportName (string) –

[REQUIRED]

The name of the report that you want to delete. The name must be unique, is case sensitive, and can’t include spaces.

Return type:

dict

Returns:

Response Syntax

{
    'ResponseMessage': 'string'
}

Response Structure

  • (dict) –

    If the action is successful, the service sends back an HTTP 200 response.

    • ResponseMessage (string) –

      Whether the deletion was successful or not.

Exceptions

Examples

The following example deletes the AWS Cost and Usage report named ExampleReport.

response = client.delete_report_definition(
    ReportName='ExampleReport',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}