AWS::CUR::ReportDefinition
The definition of Amazon Cost and Usage Report. You can specify the report name, time unit, report format, compression format, S3 bucket, additional artifacts, and schema elements in the definition.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::CUR::ReportDefinition", "Properties" : { "AdditionalArtifacts" :[ String, ... ], "AdditionalSchemaElements" :[ String, ... ], "BillingViewArn" :String, "Compression" :String, "Format" :String, "RefreshClosedReports" :Boolean, "ReportName" :String, "ReportVersioning" :String, "S3Bucket" :String, "S3Prefix" :String, "S3Region" :String, "TimeUnit" :String} }
YAML
Type: AWS::CUR::ReportDefinition Properties: AdditionalArtifacts:- StringAdditionalSchemaElements:- StringBillingViewArn:StringCompression:StringFormat:StringRefreshClosedReports:BooleanReportName:StringReportVersioning:StringS3Bucket:StringS3Prefix:StringS3Region:StringTimeUnit:String
Properties
AdditionalArtifacts-
A list of manifests that you want Amazon to create for this report.
Required: No
Type: List of String
Update requires: No interruption
AdditionalSchemaElements-
A list of strings that indicate additional content that Amazon includes in the report, such as individual resource IDs.
Required: No
Type: List of String
Update requires: Replacement
BillingViewArnThe Amazon Resource Name (ARN) of the billing view. You can get this value by using the billing view service public APIs.
Required: No
Type: String
Update requires: Replacement
CompressionThe compression format that Amazon Web Services uses for the report.
Required: Yes
Type: String
Update requires: No interruption
FormatThe format that Amazon Web Services saves the report in.
Required: Yes
Type: String
Update requires: No interruption
RefreshClosedReports-
Whether you want Amazon to update your reports after they have been finalized if Amazon detects charges related to previous months. These charges can include refunds, credits, or support fees.
Required: Yes
Type: Boolean
Update requires: No interruption
ReportNameThe 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
Update requires: Replacement
ReportVersioning-
Whether you want Amazon 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_REPORTUpdate requires: Replacement
S3BucketThe S3 bucket where Amazon Web Services delivers the report.
Required: Yes
Type: String
Update requires: No interruption
S3PrefixThe prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report. Your prefix can't include spaces.
Required: Yes
Type: String
Update requires: No interruption
S3RegionThe Region of the S3 bucket that Amazon Web Services delivers the report into.
Required: Yes
Type: String
Update requires: No interruption
TimeUnitThe granularity of the line items in the report.
Required: Yes
Type: String
Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns
{ "Ref": "ReportName" }
The name of the report that you want to create. The name must be unique, is case sensitive, and can't include spaces.
For more information about using the Reffunction, see Ref.