Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . cur ]

put-report-definition

Description

Create a new report definition

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  put-report-definition
--report-definition <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--report-definition (structure) The definition of AWS Cost and Usage Report. Customer can specify the report name, time unit, report format, compression format, S3 bucket and additional artifacts and schema elements in the definition.

Shorthand Syntax:

ReportName=string,TimeUnit=string,Format=string,Compression=string,AdditionalSchemaElements=string,string,S3Bucket=string,S3Prefix=string,S3Region=string,AdditionalArtifacts=string,string

JSON Syntax:

{
  "ReportName": "string",
  "TimeUnit": "HOURLY"|"DAILY",
  "Format": "textORcsv",
  "Compression": "ZIP"|"GZIP",
  "AdditionalSchemaElements": ["RESOURCES", ...],
  "S3Bucket": "string",
  "S3Prefix": "string",
  "S3Region": "us-east-1"|"us-west-1"|"us-west-2"|"eu-central-1"|"eu-west-1"|"ap-southeast-1"|"ap-southeast-2"|"ap-northeast-1",
  "AdditionalArtifacts": ["REDSHIFT"|"QUICKSIGHT", ...]
}

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Examples

To create an AWS Cost and Usage Reports

This example creates a daily AWS Cost and Usage Report that can be uploaded into Amazon Redshift or Amazon QuickSight.

Command:

aws cur --region us-east-1 put-report-definition --report-definition file://report-definition.json
report-definition.json::
{

"ReportName": "ExampleReport", "TimeUnit": "DAILY", "Format": "textORcsv", "Compression": "ZIP", "AdditionalSchemaElements": [

"RESOURCES"

], "S3Bucket": "example-s3-bucket", "S3Prefix": "exampleprefix", "S3Region": "us-east-1", "AdditionalArtifacts": [

"REDSHIFT", "QUICKSIGHT"

]

}

Output