選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

PutReportDefinition

焦點模式
PutReportDefinition - AWS Billing and Cost Management
此頁面尚未翻譯為您的語言。 請求翻譯

Creates a new report using the description that you provide.

Request Syntax

{ "ReportDefinition": { "AdditionalArtifacts": [ "string" ], "AdditionalSchemaElements": [ "string" ], "BillingViewArn": "string", "Compression": "string", "Format": "string", "RefreshClosedReports": boolean, "ReportName": "string", "ReportStatus": { "lastDelivery": "string", "lastStatus": "string" }, "ReportVersioning": "string", "S3Bucket": "string", "S3Prefix": "string", "S3Region": "string", "TimeUnit": "string" }, "Tags": [ { "Key": "string", "Value": "string" } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ReportDefinition

Represents the output of the PutReportDefinition operation. The content consists of the detailed metadata and data file information.

Type: ReportDefinition object

Required: Yes

Tags

The tags to be assigned to the report definition resource.

Type: Array of Tag objects

Array Members: Minimum number of 0 items. Maximum number of 200 items.

Required: No

Response Elements

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

Errors

For information about the errors that are common to all actions, see Common Errors.

DuplicateReportNameException

A report with the specified name already exists in the account. Specify a different report name.

HTTP Status Code: 400

InternalErrorException

An error on the server occurred during the processing of your request. Try again later.

HTTP Status Code: 500

ReportLimitReachedException

This account already has five reports defined. To define a new report, you must delete an existing report.

HTTP Status Code: 400

ResourceNotFoundException

The specified report (ReportName) in the request doesn't exist.

HTTP Status Code: 400

ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

Examples

The following is a sample request of the PutReportDefinition operation.

This example illustrates one usage of PutReportDefinition.

Sample Request

POST / HTTP/1.1 Host: api.cur.<region>.<domain> x-amz-Date: <Date> Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=<Signature> User-Agent: <UserAgentString> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Connection: Keep-Alive X-Amz-Target: AWSOrigamiServiceGateway.PutReportDefinition { "ReportDefinition": { "ReportName": "ExampleReport", "TimeUnit": "DAILY", "Format": "textORcsv", "Compression": "ZIP", "AdditionalSchemaElements": [ "RESOURCES" ], "S3Bucket": "example-s3-bucket", "S3Prefix": "exampleprefix", "S3Region": "us-east-1", "AdditionalArtifacts": [ "REDSHIFT", "QUICKSIGHT" }, "Tags": [ { "Key": "key-1", "Value": "value-1" } ] }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。