# AWS::CUR::ReportDefinition The AWS::CUR::ReportDefinition resource creates a Cost & Usage Report with user-defined settings. You can use this resource to define settings like time granularity (hourly, daily, monthly), file format (Parquet, CSV), and S3 bucket for delivery of these reports. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::CUR::ReportDefinition",
    "Properties" : {
        "ReportName" : String,
        "TimeUnit" : String,
        "Format" : String,
        "Compression" : String,
        "AdditionalSchemaElements" : [ String, ... ],
        "S3Bucket" : String,
        "S3Prefix" : String,
        "S3Region" : String,
        "AdditionalArtifacts" : [ String, ... ],
        "RefreshClosedReports" : Boolean,
        "ReportVersioning" : String,
        "BillingViewArn" : String
    }
}
### YAML
Type: AWS::CUR::ReportDefinition
Properties:
    ReportName: String
    TimeUnit: String
    Format: String
    Compression: String
    AdditionalSchemaElements: 
      - String
    S3Bucket: String
    S3Prefix: String
    S3Region: String
    AdditionalArtifacts: 
      - String
    RefreshClosedReports: Boolean
    ReportVersioning: String
    BillingViewArn: String
## Properties #### ReportName The name of the report that you want to create. The name must be unique, is case sensitive, and can't include spaces. _Required_: Yes _Type_: String _Minimum_: 1 _Maximum_: 256 _Pattern_: [0-9A-Za-z!\-_.*\'()]+ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### TimeUnit The granularity of the line items in the report. _Required_: Yes _Type_: String _Allowed Values_: HOURLY | DAILY | MONTHLY _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Format The format that AWS saves the report in. _Required_: Yes _Type_: String _Allowed Values_: textORcsv | Parquet _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Compression The compression format that AWS uses for the report. _Required_: Yes _Type_: String _Allowed Values_: ZIP | GZIP | Parquet _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### AdditionalSchemaElements A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs. _Required_: No _Type_: List of String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### S3Bucket The S3 bucket where AWS delivers the report. _Required_: Yes _Type_: String _Minimum_: 1 _Maximum_: 256 _Pattern_: [A-Za-z0-9_\.\-]+ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### S3Prefix The prefix that AWS adds to the report name when AWS delivers the report. Your prefix can't include spaces. _Required_: Yes _Type_: String _Minimum_: 1 _Maximum_: 256 _Pattern_: [0-9A-Za-z!\-_.*\'()/]* _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### S3Region The region of the S3 bucket that AWS delivers the report into. _Required_: Yes _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### AdditionalArtifacts A list of manifests that you want Amazon Web Services to create for this report. _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### RefreshClosedReports Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to previous months. These charges can include refunds, credits, or support fees. _Required_: Yes _Type_: Boolean _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ReportVersioning Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions. _Required_: Yes _Type_: String _Allowed Values_: CREATE_NEW_REPORT | OVERWRITE_REPORT _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### BillingViewArn The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs. _Required_: No _Type_: String _Minimum_: 1 _Maximum_: 128 _Pattern_: (arn:aws(-cn)?:billing::[0-9]{12}:billingview/)?[a-zA-Z0-9_\+=\.\-@].{1,30} _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the ReportName.